package com.hxexp.weixin.constant;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 乘客类型常量
 *
 * @author li.jiang
 *
 */
public final class PassengerType {
    /**
     * 乘客类型-成人
     */
    public static final String ADULT = "1";
    /**
     * 乘客类型-儿童
     */
    public static final String CHILD = "2";
    /**
     * 乘客类型-军残
     */
    public static final String SPECIAL = "3";
    /**
     * 编码和名称的映射
     */
    public static final Map<String, String> CODE_NAME_MAP = Collections.synchronizedMap(new LinkedHashMap<String, String>(3));
    // 映射数据初始化
    static {
        CODE_NAME_MAP.put(ADULT, "成人");
        CODE_NAME_MAP.put(CHILD, "儿童");
        CODE_NAME_MAP.put(SPECIAL, "军残");
    }

    private PassengerType() {
    }

}
